<?php
/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/9/19 16:20
 * Desc: 会员信息
 */
abstract class Contract_Api_Member_Info
{
    use Trait_Api_Image;

    use Trait_Api_Response;

    use Trait_Api_Content;

    /**
     * 会员信息
     * @param int $mid
     * @return array
     */
    abstract function show(int $mid):array;

    /**
     * 重置密码
     * @param int $mid
     * @param array $params
     * @return array
     * @throws Exception
     */
    abstract function reset_password(int $mid, array $params):array;

    /**
     * 编辑个人资料
     * @param int $mid
     * @param array $params
     * @return array
     * @throws Exception
     */
    abstract function modify(int $mid, array $params = array()):array;

    /**
     * 统计会员相关数据
     * @param int $mid
     * @return array
     */
    abstract function statistic(int $mid):array;

    /**
     * 绑定
     * @param int $mid
     * @param array $params
     * @return array
     * @throws Exception
     */
    abstract function bind(int $mid, array $params = array()):array;

    /**
     * 实名认证
     * @param int $mid
     * @param array $params
     * @return array
     * @throws Exception
     */
    abstract function real_name(int $mid, array $params):array;

    /**
     * 绑定三方账号
     * @param int $mid
     * @return int
     */
    abstract function is_bind_third(int $mid):int;
}